<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" template="ui.xhtml">

	<ui:define name="head">
		<style type="text/css">
.ui-confirm-dialog-severity {
	margin: 0 7px 7px 0;
}
</style>
	</ui:define>
	<ui:define name="content">
		<p:panel header="#{msg.title_textcondatabase}" id="panel">
			<p:messages showDetail="true" />
			<h:panelGrid styleClass="centered">
				<h:form>
					<h:panelGrid columns="2" cellpadding="5">
						<h:outputText for="database" value="#{msg.label_database}: " />
						<p:selectOneMenu id="database">
							<f:selectItem itemLabel="Mysql" itemValue="mysql" />
						</p:selectOneMenu>
						<h:outputText for="driver" value="#{msg.label_driver}: " />
						<p:inputText id="driver" size="35" value="#{DataBaseBean.driver}" />
						<h:outputText for="host" value="#{msg.label_hostdatabase}: " />
						<p:inputText id="host" size="35" value="#{DataBaseBean.host}" />
						<h:outputText for="user" value="#{msg.label_user}: " />
						<p:inputText id="user" size="35" value="#{DataBaseBean.user}" />
						<h:outputText for="pass" value="#{msg.label_password}: " />
						<p:password id="pass" size="35" value="#{DataBaseBean.password}" />
						<f:facet name="footer">
							<p:commandButton value="#{msg.label_test}" icon="connect"
								update=":panel" actionListener="#{DataBaseBean.test()}" />
						</f:facet>
					</h:panelGrid>
				</h:form>
			</h:panelGrid>
		</p:panel>
		<p:confirmDialog header="Oooops!!!" severity="alert"
			visible="#{not empty param['expired']}" message="View has expired."
			widgetVar="confirmDlg">
			<p:commandButton type="button" value="OK" onclick="confirmDlg.hide()" />
		</p:confirmDialog>
	</ui:define>
</ui:composition>